package com.ddyx.monitor.rest;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ddyx.monitor.service.IMonitorServerService;


@Controller
@RequestMapping("/monitorServer")
public class MonitorServer {

	@Autowired
	private IMonitorServerService service;
	
	/**
	 * <p>Title: monitorServer</p>
	 * <p>Description: 
	 * 		code=1000 正常 9999=运行异常
	 * </p>
	 * @return
	 */
	@RequestMapping(value="/monitorServer",method=RequestMethod.POST)
	@ResponseBody
	public Map<String, Object> monitorServer(){
		Boolean bo=Boolean.TRUE;
		System.out.println(bo);
		return service.monitorServer();
	}

}
